class X{

	public X(){//2
		System.out.print("X");
	}
	{
		System.out.println("!234");
	}
	Y y=new Y();//1
}
class Y{
	public Y(){//3
		System.out.print("Y");
	}
	{
		System.out.println("45767");
	}
	public int w = 20;
}
public class Z extends X{
	Y y=new Y();//4
	public int n = 10;
	public Z(){//5
		super();
		System.out.print("Z");
	}

	public static void main(String[] args) {
		new Z();
	}
}